<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/global/editdocument" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.documentConfig}</h1>
    </div>
    <div class="form">
      <form method="post" action="{:URL('admin/Global/doEditDocument')}" enctype="multipart/form-data">
        <dl class="kv">
          <dt>{$Think.lang.title}：</dt>
          <dd>
            <input class="input-text" name="title" id="title" type="text" value="{$title}">
            <span class="remark" id="vaname">*</span>
          </dd>
        </dl>
        <dl class="kv">
          <dt>{$Think.lang.isActive}：</dt>
          <dd>
            <label>
              <input type="radio" name="is_active" id="is_active_0" value="0" <eq name="is_active" value="0">checked</eq>>否&nbsp;&nbsp;</label>
            <label>
              <input type="radio" name="is_active" id="is_active_1" value="1" <eq name="is_active" value="1">checked</eq>>是</label>
          </dd>
        </dl>
        <dl class="kv">
          <dt>{$Think.lang.isOnFooter}：</dt>
          <dd>
            <label>
              <input type="radio" name="is_on_footer" id="is_on_footer_0" value="0" <eq name="is_on_footer" value="0">checked</eq>>否&nbsp;&nbsp;</label>
            <label>
              <input type="radio" name="is_on_footer" id="is_on_footer_1" value="1" <eq name="is_on_footer" value="1">checked</eq>>是</label>
          </dd>
        </dl>
        <dl class="kv">
          <dt>{$Think.lang.note}：</dt>
          <dd>
            <textarea rows="10" cols="80" name="content_1" id="content_1">{$content}</textarea>
          </dd>
        </dl>
        <div class="actions">
          <php>if($type=="edit") {</php>
          <input type="button" class="btn btn-y" onclick="editDocument('{$document_id}')" value="{$Think.lang.OK}" />
          <php>}else {</php>
          <input type="button" class="btn btn-y" onclick="editDocument(0)" value="{$Think.lang.OK}" />
          <php>}</php>
          <a href="#" class="btn btn-n" id="J_cancel">{$Think.lang.return}</a>
        </div>
      </form>
    </div>
  </div>
</body>

</html>
